import service from '@/utils/request'

// 获取联盟计划列表
export function getPromotionList(params) {
  return service({
    url: '/promotion/selectTbPromotion',
    method: 'get',
    params
  })
}

// 修改结果
export function updateTbPromotion(data) {
  return service({
    url: '/promotion/updateTbPromotion',
    method: 'put',
    data
  })
}

// 邀请列表
export function getTbInvitationListPageDTO(params) {
  return service({
    url: '/promotion/TbInvitationListPageDTO',
    method: 'get',
    params
  })
}

// 奖金申请列表
export function getAdminTbPromotionStatusPage(params) {
  return service({
    url: '/promotion/AdminTbPromotionStatusPage',
    method: 'get',
    params
  })
}

// 奖金申请状态修改
export function AdminUpdateTbPromotionStatus(data) {
  return service({
    url: '/promotion/AdminUpdateTbPromotionStatus',
    method: 'put',
    data
  })
}

// 奖金支付信息回显
export function AdminUpdateTbPromotionUser(params) {
  return service({
    url: '/promotion/AdminUpdateTbPromotionUser/' + params,
    method: 'get'
  })
}